package com.example.manpower.Server;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.manpower.Entity.User;
import com.example.manpower.Util.Result;

/**
* @author asus
* @description 针对表【user】的数据库操作Service
* @createDate 2024-10-11 09:56:26
*/
public interface UserService extends IService<User> {

    Result add(User user);

    Result update(User user);

    Result selectById(User user);

    Result selectPage(User user);

    Result delete(User user);

    // 查询员工总人数
    Result countTotalEmployees();

    // 查询部门总数
    Result countTotalDepartments();

}
